$def with(aff)
$:frender.layer_header('去过', scripts = ['libs/jquery.js', 'libs/jquery.rating.js', 'core.js'])
<script type="text/javascript">
    $$(function () {
        $$('._rating').rating({
            focus: function (value, link) {
                var tip = $$('#rec_text');
                tip[0].data = tip[0].data || tip.html();
                tip.html(link.title || 'value:' + value);
            },
            blur: function (value, link) {
                var tip = $$('#rec_text');
                tip.html(tip[0].data || '');
            },
            required: true

        })
    });
</script>
            <form method="post">
            <div class="layCnt" style="pading-bottom:0;">
                <p><strong>你去过？太棒了！你觉得那儿怎么样？</strong></p>
                <p class="mb_5">
                    <span class="fl mr_5">你的评价</span>
                    <input class="_rating" type="radio" name="rating" value="1" title="很差"/>
                    <input class="_rating" type="radio" name="rating" value="2" title="较差"/>
                    <input class="_rating" type="radio" name="rating" value="3" title="还行"/>
                    <input class="_rating" type="radio" name="rating" value="4" title="推荐"/>
                    <input class="_rating" type="radio" name="rating" value="5" title="力荐"/>
                    <span id="rec_text" style="margin:0 0 0 10px;">&nbsp;</span>
                </p>
                <p><input init-value="说点什么吧..." type="text" id="comment" name="comment" class="input" /></p>
                <p class="txt_info">
                    <input type="checkbox" id="sync" name="sync" value="1" checked="checked" />
                    <label for="sync">分享到$current_user().client.text，可以帮助想去的朋友</label>
                </p>
                <p class="mt_10"><img src="$get_media_url(aff.media_id)" height="50" title="$aff.title - $aff.dest_name" class="img_h50" /></p>
            </div>
            <div class="layCtr">
                <a href="javascript:;" onclick="$$('form').submit();" class="add_btn"><b>确定</b></a>
            </div>
            </form>

            <script type="text/javascript">
                $$(function () {
                    $$('input[type=text]').value_opr();
                });
            </script>
$:frender.layer_footer()
